package edu.neu.agv_backend.controller;

import edu.neu.agv_backend.dto.AjaxResult;
import edu.neu.agv_backend.service.SystemCheckService;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/api/system/check")
public class SystemCheckController {

    private final SystemCheckService checkService;

    public SystemCheckController(SystemCheckService checkService) {
        this.checkService = checkService;
    }

    @GetMapping("/fs")
    public AjaxResult<Void> checkFs() {
        return checkService.checkFs();
    }

    @GetMapping("/db")
    public AjaxResult<Void> checkDb() {
        return checkService.checkDb();
    }

    @GetMapping("/agv")
    public AjaxResult<Void> checkAgv() {
        return checkService.checkAgv();
    }

    @GetMapping("/cam")
    public AjaxResult<Void> checkCam() {
        return checkService.checkCam();
    }
} 